<?php


namespace app\common\model;


class RoleModel extends CommonModel
{
    protected $name = 'role';
    //protected $hidden = ['delete_time'];

    protected function getCommonAttr($value): string
    {
        return $value === '1' ? '是' : '否';
    }

    protected function getIsMenuAttr($value): string
    {
        return $value === '1' ? '是' : '否';
    }
}